﻿using Pay.TO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pay.DTO {
    /// <summary>
    /// 提现
    /// </summary>
    public class token_transfer_dto {
        /// <summary>
        /// 提现id
        /// </summary>
        public long id { get; set; }
        /// <summary>
        /// 提现商户id
        /// </summary>
        public long merchant_id { get; set; }
        /// <summary>
        /// 提现商户昵称
        /// </summary>
        public string merchant_name { get; set; }
        /// <summary>
        /// 提现商户
        /// </summary>
        public string merchant_mobile { get; set; }
        /// <summary>
        /// 提现单号
        /// </summary>
        public string order_no { get; set; }
        /// <summary>
        /// 提现金额
        /// </summary>
        public decimal transfer_amount { get; set; }
        /// <summary>
        /// 实结金额＝提现金额-结算费
        /// </summary>
        public decimal amount { get; set; }
        /// <summary>
        /// 失败信息
        /// </summary>
        public string msg { get; set; }
        /// <summary>
        /// 状态：提现状态 0 待审核 1 已通过未付款 2已通过已付款 3 未通过
        /// </summary>
        public TokenTransferStatus status { get; set; }
        /// <summary>
        /// 状态描述
        /// </summary>
        public string status_desc { get; set; }
        /// <summary>
        /// 提现类型 提现类型  1 分销收益 2 课程收益 3店铺收益
        /// </summary>
        public TokenTransferType transfer_type { get; set; }
        /// <summary>
        /// 提现类型 描述
        /// </summary>
        public string transfer_type_desc { get; set; }
        /// <summary>
        /// 结算费
        /// </summary>
        public decimal settle_amount { get; set; }
        /// <summary>
        /// 结算费率
        /// </summary>
        public decimal settle_rate { get; set; }
        /// <summary>
        /// 卡类型：0个人，1企业
        /// </summary>
        public int busi_type { get; set; }
        /// <summary>
        /// 开户银行
        /// </summary>
        public string bank_name { get; set; }
        /// <summary>
        /// 省市区
        /// </summary>
        public string region_name { get; set; }
        /// <summary>
        /// 支行详细地址
        /// </summary>
        public string branch_address { get; set; }
        /// <summary>
        /// 卡号
        /// </summary>
        public string account_no { get; set; }
        /// <summary>
        /// 开户姓名/公司名称
        /// </summary>
        public string account_name { get; set; }
        /// <summary>
        /// 申请时间
        /// </summary>
        public DateTime apply_time { get; set; }
        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime? audit_time { get; set; }
        /// <summary>
        /// 审核人
        /// </summary>
        public string audit_Manage { get; set; }
        /// <summary>
        /// 打款时间
        /// </summary>
        public DateTime? pay_time { get; set; }
        /// <summary>
        /// 打款操作人
        /// </summary>
        public string pay_manage { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string remark { get; set; }
        /// <summary>
        /// 支付信息id
        /// </summary>
        public long? pay_id { get; set; }
        /// <summary>
        /// 是否有风险
        /// </summary>
        public bool is_risk { get; set; }
        /// <summary>
        /// 支付信息
        /// </summary>
        public pay_info_dto pay_info { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public merchant_dto merchant { get; set; }
    }
    public class token_transfer_dto_ex:token_transfer_dto{
        /// <summary>
        /// 分佣记录
        /// </summary>
        public PagedResult<token_transfer_commission_detail> token_transfer_commission_list { get; set; }
        /// <summary>
        /// 分佣合计
        /// </summary>
        public decimal total_commission { get; set; }
        /// <summary>
        /// 正在要下发的金额
        /// </summary>
        public decimal depositing { get; set; }
    }

    public class token_transfer_commission_detail {
        /// <summary>
        /// 购买人手机号
        /// </summary>
        public string buyer_mobile { get; set; }
        /// <summary>
        /// 购买人昵称
        /// </summary>
        public string buyer_name { get; set; }
        /// <summary>
        /// 分佣金额
        /// </summary>
        public decimal commission { get; set; }
        /// <summary>
        /// 支付Id
        /// </summary>
        public long? pay_id { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime create_time { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string remark { get; set; }
    }
    /// <summary>
    /// token 钱包
    /// </summary>
    public class token_wallet_dto {
        /// <summary>
        /// 图标
        /// </summary>
        public string icon { get; set; }
        /// <summary>
        /// 背景图片
        /// </summary>
        public string backgroud_img { get; set; }
        /// <summary>
        /// 值
        /// </summary>
        public string value { get; set; }
        /// <summary>
        /// 计量单位
        /// </summary>
        public string unit { get; set; }
        /// <summary>
        /// 类型 0 红钻 1分销 2课程 3 店铺
        /// </summary>
        public TokenTransferType type { get; set; }
        /// <summary>
        /// 类型描述
        /// </summary>
        public string type_desc { get; set; }
    }
    /// <summary>
    /// 账单详情
    /// </summary>
    public class token_wallet_detail_dto {
        public long merchant_id { get; set; }
        /// <summary>
        /// 总资产
        /// </summary>
        public string money { get; set; }
        /// <summary>
        /// 可提现
        /// </summary>
        public string deposit { get; set; }
        /// <summary>
        /// 冻结中（课程收益提现中）
        /// </summary>
        public string deposting { get; set; }
    }
    /// <summary>
    ///钱包 账单列表
    /// </summary>
    public class token_wallet_bill_detail_dto {
        /// <summary>
        /// 昵称
        /// </summary>
        public string nick_name { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        public string mobile { get; set; }
        /// <summary>
        /// 金额
        /// </summary>
        public string money { get; set; }
        /// <summary>
        /// 时间
        /// </summary>
        public string datetime { get; set; }
        /// <summary>
        /// 订单Id
        /// </summary>
        public long order_id { get; set; }
        /// <summary>
        /// 订单号
        /// </summary>
        public string  order_no { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int status { get; set; }
        /// <summary>
        /// 状态描述
        /// </summary>
        public string status_desc { get; set; }
        /// <summary>
        /// 订单详情跳转地址（为空则不跳转）
        /// </summary>
        public string link_url { get; set; }

    }
    /// <summary>
    /// 提现记录
    /// </summary>
    public class token_deposited_dto {
        /// <summary>
        /// 提现金额
        /// </summary>
        public string amount { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public TokenTransferStatus status { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public string status_desc { get; set; }
        /// <summary>
        /// 提现时间
        /// </summary>
        public string datetime { get; set; }
    }


    #region 供应商PC
    /// <summary>
    ///供应商PC 账单列表
    /// </summary>
    public class spc_token_bill_detail_dto {
        /// <summary>
        /// 姓名
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        public string mobile { get; set; }
        /// <summary>
        /// 金额
        /// </summary>
        public string money { get; set; }
        /// <summary>
        /// 时间
        /// </summary>
        public string datetime { get; set; }
        /// <summary>
        /// 订单Id
        /// </summary>
        public long order_id { get; set; }
        /// <summary>
        /// 订单号
        /// </summary>
        public string order_no { get; set; }
        /// <summary>
        /// 支付单号
        /// </summary>
        public string pay_no { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int status { get; set; }
        /// <summary>
        /// 状态描述
        /// </summary>
        public string status_desc { get; set; }
        /// <summary>
        /// 订单详情跳转地址（为空则不跳转）
        /// </summary>
        public string link_url { get; set; }

    }
    #endregion
}
